package com.dailyblue.example.springcloud.sentinel.consumer.handler;

import com.dailyblue.example.springcloud.commons.util.JsonResult;
import com.dailyblue.example.springcloud.commons.util.ResultTool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SecondFallback {
    public static JsonResult bbb(int index, Throwable e) {
        log.info("进入了fallback,e:{}", e);
        return ResultTool.fail(602, "出现异常2-2");
    }
}
